import request from '@/utils/request'
//登录系统
export function login(data) {
  return request({
    url: 'api/manage/sysUsersInfo/login',
    method: 'post',
    data
  })
}
//查询用户信息
export function getInfo() {
  return request({
    url: 'api/manage/sysUsersInfo/userInfo',
    method: 'get'
  })
}
//退出登录
export function logout() {
  return request({
    url: 'api/manage/sysUsersInfo/logout',
    method: 'post'
  })
}

export function getListPage(data) {
  return request({
    url: 'api/manage/sysUsersInfo/getListPage',
    method: 'post',
    data
  })
}
export function getSave(data) {
  return request({
    url: 'api/manage/sysUsersInfo/save',
    method: 'post',
    data
  })
}
export function getUpdate(data) {
  return request({
    url: 'api/manage/sysUsersInfo/save',
    method: 'post',
    data
  })
}
export function getDelete(data) {
  return request({
    url: '/api/userInfo/delByIdentify',
    method: 'post',
    data
  })
}
export function getUpdatePassword(data) {
  return request({
    url: 'api/manage/sysUsersInfo/updatePassword',
    method: 'post',
    data
  })
}
